/**
 * SinkAck.java
 *
 * @created Mardi 06/03/2007
 * 
 * @author bbrison
 */

package communication.pack;

import objects.Station;


public class SinkAck extends SMPackage {

    private Station _destination;

    public SinkAck(Station sender, int sequencenb, int hopcount, int requestnb, int ttl, Station dest) {
	super(sender,sequencenb,hopcount,requestnb,SINKACK,ttl);
	_destination = dest;
    }

    public SinkAck(SinkAck s) {
	super(s);
	_destination = s.getDestination();
    }
    
    public Station getDestination() {
	return _destination;
    }
    
    public String toString() {
	return "SINKACK : \n" + super.infoPackage();
    }
    
}
